package com.yuyou.fn.tradingservice.service;

import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.tradingservice.entity.ServiceCategory;
import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.tradingservice.vo.ServiceCategoryVo;

import java.util.List;

/**
 *
 * ServiceCategory 表数据服务层接口
 *
 */
public interface IServiceCategoryService extends ISuperService<ServiceCategory,Long> {

    void saveCategory(ServiceCategoryVo categoryVo);

    void editCategory(ServiceCategoryVo categoryVo);

    Page<ServiceCategory> findCategoryForPage(ServiceCategoryVo category, int pageNo, int pageSize);

    String findCategoryNameById(Long categoryId );

    List<ServiceCategory> getChildCategory(Long categoryId);

    List<ServiceCategory> findCategoryByType(Integer type);

    List<Long> getAllChildCategory(Long categoryId);
}